import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/page/Login'
import Index from '@/page/Index'
import dictionary_install from '@/page/system_settings/commonly_used_settings/dictionary_install'
import quick_link_list from '@/page/system_settings/commonly_used_settings/quick_link_list'
import introduction_personnel_salary from '@/page/system_settings/commonly_used_settings/introduction_personnel_salary'
import building_title from '@/page/system_settings/commonly_used_settings/building_title'
Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/sys',
      name: 'Index',
      component: Index,
      redirect: '/sys/module',
      children: [{
        path: '/sys/module',
        name: 'module',
        component: () => import('@/page/system_manager/ModuleManager'),
        meta: {
          title: '模块管理'
        }
      }, ]
    },
    {
      path: '/sys',
      name: 'Index',
      component: Index,
      redirect: '/sys/role',
      children: [{
        path: '/sys/role',
        name: 'role',
        component: () => import('@/page/system_manager/RoleManager'),
        meta: {
          title: '角色管理'
        }
      }, ]
    } ,
    {
      path: '/sys',
      name: 'Index',
      component: Index,
      redirect: '/sys/adminuser',
      children: [{
        path: '/sys/adminuser',
        name: 'adminuser',
        component: () => import('@/page/system_manager/AdminUserManager'),
        meta: {
          title: '用户管理'
        }
      }, ]
    } ,
    {
      path: '/sys',
      name: 'Index',
      component: Index,
      redirect: '/sys/wsm',
      children: [{
        path: '/sys/wsm',
        name: 'wsm',
        component: () => import('@/page/system_manager/WebSystemMenuManager'),
        meta: {
          title: '菜单管理'
        }
      }, ]
    } ,

    {
      path: '/dictionary_install',
      name: 'dictionary_install',
      component: dictionary_install
    },
    {
      path: '/quick_link_list',
      name: 'quick_link_list',
      component: quick_link_list
    },
    {
      path: '/introduction_personnel_salary',
      name: 'introduction_personnel_salary',
      component: introduction_personnel_salary
    },
    {
      path: '/building_title',
      name: 'building_title',
      component: building_title
    },
    
  ]
})